<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .outer {
        width: 400px;
        height: 600px;
        background-color: #888;
        display: flex;
        margin: 0 auto;
        flex-direction: row;
        /* flex-wrap: wrap; */
        /* justify-content主轴方向间的分布方式 */
        /* justify-content: center; */
        /* justify-content: space-around; */
        /* justify-content: space-between; */
        /* justify-content: space-evenly; */
        /* 主轴的对齐方式，主轴的起始位置 */
        justify-content: flex-start;
        align-content: flex-start;
      }
      .inner {
        width: 200px;
        height: 200px;
        background-color: skyblue;
        /* border: 1px solid #000; */
        /* box-sizing: border-box; */

        /* flex-grow负责拉伸的，默认值是0，表示不拉伸 ，1代表同比例拉伸*/
        /* flex-grow: 1; */

        /* flex-shrink：表示收缩的，默认值是1，表示同比例收缩 */
      }
      .inner1 {
        flex-shrink: 1;
      }
      .inner2 {
        width: 300px;
        flex-shrink: 2;
      }
      .inner3 {
        flex-shrink: 3;
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <div class="inner inner1">1</div>
      <div class="inner inner2">2</div>
      <div class="inner inner3">3</div>
      <!-- <div class="inner">4</div>
      <div class="inner">5</div>
      <div class="inner">6</div>
      <div class="inner">7</div>
      <div class="inner">8</div>
      <div class="inner">9</div>
      <div class="inner">10</div>
      <div class="inner">11</div> -->
    </div>
  </body>
</html>
